<template>
    <div>
        <!-- <span>{{ count }}1</span>
        <button @click="onClickAdd">+</button>
        <button @click="addasyncs">+async</button> -->
        <el-input-number v-model="num" @change="handleChange" :min="1"></el-input-number>
    </div>
</template>

<script>
    
    import { mapMutations,mapActions } from 'vuex'
    export default {
        data() {
            return {
                num:this.$store.state.num
            }
        },
        // computed: {
        //     count: function () {
        //         return this.$store.state.count;
        //     }
        // },
        methods:{
            ...mapMutations(['onClickAdd']),
            ...mapActions(['addasyncs']),
            // onClickAdd(){
            //     this.$store.dispatch('adds')
            // }
        }
    }
</script>